from json import JSONDecoder

import scrapy
import json


class GanjiSpider(scrapy.Spider):
    name = "eleme"
    start_urls = ['https://www.ele.me/place/wx4ej2tmemdb']

    def parse(self, response):
        title_list = response.xpath(".//div[@class='f-list-item ']/dl/dd[1]/a/text()").extract()
        money_list = response.xpath(
            ".//div[@class='f-list-item ']/dl/dd[5]/div[1]/span[1]/text()").extract()
        for i, j in zip(title_list, money_list):
            print (i, ":", j)
